package com.dormms.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("contacts")
public class Contacts implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键
    @TableId(value = "id", type = IdType.AUTO)//设置了映射的同时设置了自动递增
    private Integer contactId;
    //姓名
    @TableField("name")
    private String contactName;
    //电话
    @TableField("phone")
    private String contactPhone;
    //邮箱
    @TableField("email")
    private String contactEmail;
}
